import request from '@/utils/request'
export const getCategoryListService = ({ page, pageSize,name }) => {
  return request.get('/foodType/page', {
    params: {
      page: page,
      pageSize: pageSize,
      name:name
    }
  })
}
export const addCategoryService = (data) => {
  return request.post('/foodType', data)
}
export const editCategoryService = (data) => {
  return request.put('/foodType', data)
}

export const deleteCategoryService = (ids) => {
  return request.delete('/foodType', {
    params: {
      ids: ids
    }
  })
}
